package com.hc.baselibray.ioc;

import android.app.Activity;
import android.view.View;

public class ViewFinder {
    private  Activity activity;
    private  View view;
    public ViewFinder(Activity activity) {
    this.activity=activity;
    }

    public ViewFinder(View view) {
        this.view=view;
    }
    public  View findViewById(int ViewId){
      return activity!=null?activity.findViewById(ViewId):view.findViewById(ViewId);
    }
}
